package com.edgar.paysdk.ali

/**
 * Created by edgar on 18-1-21.
 */
class PayResult{

    var result:String=""
    var resultStatus:String=""
    var memo:String=""

    companion object ErrorCode{
        @JvmStatic val CANCEL = "6001"
        @JvmStatic val NET_ERROR = "6002"
        @JvmStatic val SUCCESS = "9000"
        @JvmStatic val HANDLE = "8000"

        @JvmStatic fun to(result:Map<String,String>?):PayResult{
            val payResult = PayResult()
            payResult.result = result?.get("result").toString()
            payResult.resultStatus = result?.get("resultStatus").toString()
            payResult.memo = result?.get("memo").toString()
            return payResult
        }
    }
}